package com.gitee.springboot_userdemo.mapper;

import com.gitee.springboot_userdemo.domain.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    //查询用户列表
    List<User> selectAll();
    //根据id删除用户
    void deleteById(int uid);
    //根据id查询用户
    User selectById(int uid);
    //更新用户数据
    void updateUser(User user);
    //添加用户
    void addUser(User user);

}